const DESIGN_WIDTH = 430;
const BASE_SIZE = 43;
export function setRem() {
  const scale = document.documentElement.clientWidth / DESIGN_WIDTH;
  document.documentElement.style.fontSize = `${Math.min(scale, 2) * BASE_SIZE}px`;
}
setRem();
window.addEventListener('resize', setRem);
